package com.github.binarywang.demo.wx.mp.jpa;


import com.github.binarywang.demo.wx.mp.beans.WxMpUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.stereotype.Repository;

/**
 * @author xiaoban
 * @date 2021/9/3 上午1:33
 */
@Repository
@EnableJpaRepositories(basePackages = "com.github.binarywang.demo.wx.mp.beans.WxMpUser")
public interface WxMpUserDao extends JpaRepository<WxMpUser,Long> {

    WxMpUser findByOpenId(String openId);

    WxMpUser findByOpenIdsLike(String openId);
}
